﻿<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link href="~/favicon.ico" rel="shortcut icon" type="image/x-icon" />
    <base href="@Web.Infrastructure.Mvc.FileUpload.UploadManager.UrlPrefix" />
    <title>@ViewBag.Title | 后台管理</title>
    <link href="~/Content/themes/default/reset.css" rel="stylesheet" type="text/css" />
    <link href="~/Content/themes/default/admin.css" rel="stylesheet" type="text/css" />
    <script src="~/Scripts/jquery-1.11.2.min.js"></script>
    <script src="~/Scripts/jquery.validate.min.js"></script>
    <script src="~/Scripts/jquery.validate.unobtrusive.min.js"></script>
    <script src="~/Scripts/jquery.unobtrusive-ajax.min.js"></script>
    <link rel="stylesheet" href="~/UI/kindeditor/themes/default/default.css" />
    <script src="~/UI/kindeditor/kindeditor.js"></script>
    <script src="~/UI/kindeditor/lang/zh_CN.js"></script>
</head>
<body>
    <div class="header">
        <ul class="left">
            <li><a href="@Url.Action("Index","Home")">返回前台</a></li>
        </ul>
        <ul class="right">
            @if (User.Identity.IsAuthenticated)
            {
                <li><a href="@Url.Action("Index","Admin")">@User.Identity.Name</a></li>
                <li>
                    @using (Html.BeginForm("Logout", "Customer"))
                    {
                        @Html.AntiForgeryToken()
                        <input type="submit" value="注销" />
                    }
                </li>

            }
            else
            {
                <li>@Html.ActionLink("登录", "Login", "Customer")</li>
            }
        </ul>
    </div>
    <div class="main">
        <div class="side_nav @ViewBag.Menu">
            <h2 class="title">主导航</h2>
            <ul>
                <li><a class="config" href="@Url.Action("EditConfig")">站点配置</a></li>
            </ul>
        </div>
        <div class="content">
            @RenderBody()
        </div>
    </div>
    <div class="footer">
        <p>版权所有 © 2015 </p>
    </div>
</body>
</html>